<template>
  <div class="inject">
    <p>测试vue3---provide/inject</p>
  </div>
</template>
<script setup lang="ts">
import {ref, inject} from 'vue'

const value = inject('key')
// console.log(value)


</script>
<style scoped lang="scss">
.inject {
  color: teal;
}
</style>